package com.zlp.dto.test;

import com.zlp.common.exception.ServiceException;
import lombok.Data;
import java.io.Serializable;
import java.util.Objects;

@Data
public class SupplierCodeDTO implements Validatable, Serializable {

    private static final long serialVersionUID = 2108663498950517320L;

    /**
     *  供应商编号
     */
    private Integer supplierCode;
    @Override
    public void validate() {
        if (Objects.isNull(supplierCode)) {
            throw new ServiceException("供应商编号不能为空");
        }

    }

}
